import { getEntire } from "@/http/modules/entire";


const { createSlice, createAsyncThunk } = require("@reduxjs/toolkit");

export const getEntireInfo = createAsyncThunk("entire",async (obj)=>{
    const res = await getEntire(obj);
    return res
})

const entireSlice = createSlice({
    name:"entire",
    initialState:{
        entireInfo:{},
    },
    extraReducers:{
        [getEntireInfo.fulfilled](state,{payload}){
            state.entireInfo = payload;
        },
    }
})


export default entireSlice.reducer